package cn.ztuo.bitrade.service;

import cn.ztuo.bitrade.dao.ContractPlatformMapper;
import cn.ztuo.bitrade.entity.ContractPlatform;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ContractPlatformService {

    @Autowired
    private ContractPlatformMapper platformMapper;

    public ContractPlatform get(){
        ContractPlatform platform = platformMapper.getById(1L);
        return platform;
    };
    public ContractPlatform saveAndFlush(ContractPlatform platform){
        return platformMapper.saveAndFlush(platform);
    };
    public void increaseAmount(){

    }

}
